<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>ECharts 仅显示销售维度刻度值的雷达图</title>
    <script src="https://cdn.jsdelivr.net/npm/echarts@5.4.2/dist/echarts.min.js"></script>
</head>

<body>
<div id="main" style="width: 600px; height: 400px;"></div>
<script>
    // 初始化 ECharts 实例
    var myChart = echarts.init(document.getElementById('main'));

    // 雷达图配置
    var option = {
        radar: {
            shape: 'circle',
            indicator: [
                { name: '销售', max: 6500 },
                { name: '管理', max: 16000, axisLabel:{show:false} },
                { name: '信息技术', max: 30000, axisLabel:{show:false} },
                { name: '客服', max: 38000, axisLabel:{show:false} },
                { name: '研发', max: 52000, axisLabel:{show:false} },
                { name: '市场', max: 25000, axisLabel:{show:false} }
            ],
            axisLine: {
                show: true,
                lineStyle: {
                    color: '#ccc'
                }
            },
            axisTick: {
                show: true,
                lineStyle: {
                    color: '#ccc'
                }
            },
            axisLabel: {
                show: true,
                color: '#333',
            },
            splitLine: {
                show: true,
                lineStyle: {
                    color: '#ccc'
                }
            },
            splitArea: {
                show: false
            }
        },
        series: [
            {
                name: '预算 vs 开销',
                type: 'radar',
                data: [
                    {
                        value: [4200, 3000, 20000, 35000, 50000, 18000],
                        name: '预算分配'
                    },
                    {
                        value: [5000, 14000, 28000, 26000, 42000, 21000],
                        name: '实际开销'
                    }
                ]
            }
        ]
    };

    // 应用配置并显示图表
    myChart.setOption(option);
</script>
</body>

</html>